'''
Author: didiplus 
Date: 2023-08-30 16:14:12
LastEditors: didiplus 
LastEditTime: 2023-08-30 16:44:44
FilePath: \pythonscript\ragb_maotai.py
Description: 
Copyright (c) 2023 by didiplus, All Rights Reserved. 
'''
from bs4 import BeautifulSoup
from selenium import webdriver
from loguru import logger
import time



class TaoBao():

    pass


    def openChrome(self):
        driver = webdriver.Chrome()
        taobaoUrl='https://login.taobao.com/member/login.jhtml?f=top&redirectURL=https%3A%2F%2Fwww.taobao.com%2F%3Fspm%3Da1z0d.6639537%2Ftb.1581860521.1.24317484mFBzxx'
        driver.get(taobaoUrl)

        logger.info("请扫描登录,Clicking to extend table...")
        driver.find_element_by_xpath('//i[@class="iconfont icon-qrcode"]').click()

        logger.info("这里扫码开始等待点击")
        time.sleep(5)

        while True:
            pass


        time.sleep(1000000000)



if __name__ == "__main__":
    TaoBao().openChrome()